package 设计模式.第2部分.第14章_观察者模式.v3;

public class App {
	public static void main(String[] args) {

		Boss huhansan = new Boss();

		StockObserver tongshi1 = new StockObserver("魏", huhansan);
		NBAObserver tongshi2 = new NBAObserver("易", huhansan);

		huhansan.Attach(tongshi1);
		huhansan.Attach(tongshi2);

		huhansan.Detach(tongshi1);

		huhansan.setAction("我回来了");

		huhansan.Notify();

	}
}
